This button appears on the user log in page, but it would be nice to have the flexibility of placing it anywhere on the site with a block. Is this already possible or in plans for the future? Thanks. Kevin

Comments

abraham’s picture

Category: support » feature
maddentim’s picture

ditto here. exactly what I am looking for...

maddentim’s picture

An update - if you put the standard "user login" block on the home page, the FB connect icon is in there (if you are logged out). This is something, but I think I would still prefer a FB connect only block.

jgoldfeder’s picture

You can make a simple login block by creating a new block and putting in the following code and then only making the block viewable to anonymous users.

<div class="white">
<fb:login-button size="medium" background="white" length="long">
</fb:login-button>
</div>

Here is a link to other facebook buttons:
http://wiki.developers.facebook.com/index.php/Facebook_Connect_Login_But...

venusrising’s picture

The problem is if you paste the code an in a block and then click a login link the block turns into

just code below

Does anyone know why this happen when the regular Drupal login link is clicked?

Jonathan Björkskog’s picture

@jgoldfeder, this puts a button on the page, but the button does not actually work. After clicking on it it disappears as if you were logged in, but you are not logged in to the drupal site. The source code for that button does not look the same as the code for the facebook-connect button that comes with the common liogin form.. Otherwise this would have been great.

takinola’s picture

see discussion at http://drupal.org/node/903564

to insert the Facebook connect button in a block, create a new block and add the code below

<?php return fbconnect_render_button() ?>